﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;

namespace Enough.Converter
{
    public class CollectionSizeToVisibilityConverter : CollectionSizeToBooleanConverter
    {
        public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {

            bool meetsRequiredCollectionSize = (bool)base.Convert(value, targetType, parameter, culture);
            return meetsRequiredCollectionSize ? Visibility.Visible : Visibility.Collapsed;
        }
    }
}
